local skel = fk.CreateSkill {
  name = "#lb_zero__mengyao_high_zhuangjiahati-choose",
}

Fk:loadTranslationTable {
  ["#lb_zero__mengyao_high_zhuangjiahati-choose"] = "恶名·装甲哈提",
}

skel:addEffect("active", {
  expand_pile = function (self, player)
    return self.extra_data.ids
  end,
  target_filter = function (self, player, to_select, selected, selected_cards, card, extra_data)
    return #selected == 0 and #selected_cards == 0 and table.find(to_select:getCardIds("e"), function(id)
          return Fk:getCardById(id).type == Card.TypeEquip
        end)
  end,
  card_filter = function (self, player, to_select, selected, selected_targets)
    return type(self.extra_data.ids) == "table" and #self.extra_data.ids > 0 
    and #selected == 0 and #selected_targets == 0 and table.contains(self.extra_data.ids, to_select)
  end,
  feasible = function (self, player, selected, selected_cards, card)
    return #selected == 1 or #selected_cards == 1
  end,
})

return skel
